
<%@ page import="java.util.List" %>
<%@ page import="com.timeDeal.bean.JubaoBean" %>

<%--
  Created by IntelliJ IDEA.
  User: 叼爸爸
  Date: 2016/9/8
  Time: 21:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../inc/admintop.jsp"%>
<%
    List<JubaoBean> result = (List<JubaoBean>) request.getAttribute("result");
    int max =Integer.valueOf( (String) request.getAttribute("max"))/3+1;
    List<String>  jubaorenname = (List<String>) request.getAttribute("jubaorenname");
    List<String>  jubaoduixiangname = (List<String>) request.getAttribute("jubaoduixiangname");
    int currentpage =Integer.valueOf( (String) request.getAttribute("currentpage"));
%>
<div class="row">
    <div class="col-xs-12" style="margin-right: 200px">
        <table class="table">
            <tr>
                <th>序号</th>
                <th>举报原因</th>
                <th>举报对象</th>
                <th>举报人</th>
                <th>处理</th>
            </tr>
            <%
                for (int i = 0; i <result.size() ; i++) {%>
            <tr>
                <th><%=currentpage*3+i+1%></th>
                <th><a href="<%=ctxpath%>/admin/chakanjubaogg.jsp?id=<%=result.get(i).getJubaoid()%>&currentpage=<%=i%>">点击查看</a></th>
                <th><a href="<%=ctxpath%>/user/bierenxinxi.jsp?id=<%=result.get(i).getJubaoduixiangid()%>"><%=jubaoduixiangname.get(i)%></a></th>
                <th><a href="<%=ctxpath%>/user/bierenxinxi.jsp?id=<%=result.get(i).getJubaorenid()%>" ><%=jubaorenname.get(i)%></a></th>
                <th><a href="<%=ctxpath%>/admin/done.jsp?id=<%=result.get(i).getJubaoid()%>&currentpage=<%=currentpage%>">已处理</a></th>

            </tr>
            <%}%>
        </table>
        <div align="center">
            <%
                for (int i = 0; i <max ; i++) { %>
            <label><a href="<%=ctxpath%>/admin/jubaochuligg.jsp?currentpage=<%=i%>"><%=i+1%></a></label>
            <% }%>
            <br>
            <br>
            <br>
        </div>
        <button style="align-content: center"><a href="<%=ctxpath%>/admin/guanli.jsp">返回</a></button>
    </div>

</div>

<%@ include file="../inc/bottom.jsp"%>
